package bpmn.Delegate;

import java.util.logging.Logger;  
import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;

import bpmn.InstructorForm;
import bpmn.SecretaryForm;

public class SecretaryServiceTask implements JavaDelegate {  //此源码用于servicetask触发
  
    private final Logger log = Logger.getLogger(SecretaryServiceTask.class.getName());  
  
    @Override  
    public void execute(DelegateExecution execution) throws Exception {  
        Thread.sleep(1000);  
        log.info("启动书记审批");
        new SecretaryForm().createAndShowGUI();
        log.info("variavles=" + execution.getVariables());  
        //execution.setVariable("项目经理", "请假天数大约3天，同意请假。");  
        //log.info("项目经理，请假天数大约3天，同意请假。.");         
    }  
}  